package com.youaishujuhui.devops.web.service.game;

import java.util.List;

import javax.annotation.Resource;

import org.nutz.dao.Dao;
import org.nutz.service.IdEntityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.youaishujuhui.devops.web.dao.game.GameProcessDao;
import com.youaishujuhui.devops.web.domain.game.GameProcess;
import com.youaishujuhui.devops.web.po.HostPO;

@Service
public class GameProcessService extends IdEntityService<GameProcess> {
	
	@Autowired
	private GameProcessDao gameProcessDao;
	
	public List<GameProcess> queryAll() {
		return gameProcessDao.queryAll();
	}

	public List<HostPO> queryByGameIdAndChannelId(String gameId, String channelName) {
		return gameProcessDao.queryByGameIdAndChannelId(gameId, channelName);
	}

	@Resource(name = "nutDao")
	@Override
	public void setDao(Dao dao) {
		super.setDao(dao);
	}
	
}
